#ifndef COLORBAR_H
#define COLORBAR_H

#include <QWidget>
#include <QImage>

class colorBar : public QWidget
{
    Q_OBJECT

public:
    colorBar(float aMin, float aMax, QWidget* parent = 0);
    QImage image();

public slots:
    void reload(float aMin, float aMax);

protected:
     void paintEvent(QPaintEvent *event);

 private:
    void doPaint(QPainter& painter);

    float min;
    float max;
};

#endif // COLORBAR_H
